<?php

namespace app\im\model;

class Model extends \think\Model
{
    public function scopeUser($query)
    {
        $query->where('user_id', get_curr_user_id());
    }
}
